<template>
  <div>
    <div class="loading">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>
  </div>
</template>
<script>
export default {};
</script>
<style scoped>
.loading {
  display: grid;
  grid-template-columns: repeat(5, 15px);
}

.loading div {
  width: 10px;
  height: 10px;
  background-color: rgba(24, 144, 255, .5);
  position: relative;
}

.loading div:nth-child(1)::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #1890ff;
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  animation: wq_step 1s steps(5, end) infinite;
}

@keyframes wq_step {
  to {
    transform: translateX(75px);
  }
}
</style>
